/**
 * User: alesj
 * Date: 2005.3.18
 * Time: 11:41:29
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.generalynx.common.data;

public class ThreadJdbcFactoryHolder {

    private static final ThreadLocal holder = new ThreadLocal();

    public static IJdbcFactory getJdbcFactory() {
        return (IJdbcFactory)holder.get();           
    }

    public static void setJdbcFactory(IJdbcFactory jdbcFactory) {
        holder.set(jdbcFactory);
    }

    public static void clear() {
        setJdbcFactory(null);
    }

}
